#include <windows.h>
#include "CZoneMessagePacket.h"

CZoneMessagePacket::CZoneMessagePacket(CChar * schar, CBaseEntity *target, int param, int value, int mId) {

	memset(this->data, 0, 0x0e*2);
	this->type = 0x2a;
	this->size = 0x0e;

	memcpy(this->data,&schar->m_id,4);

	unsigned short targId = schar->getTargId();
	memcpy(this->data+0x14,&targId,2);

	memcpy(this->data+0x08,&param,4);
	memcpy(this->data+0x14,&mId,4);

	memcpy(this->data+0x0c,&value,4);

}

CZoneMessagePacket::~CZoneMessagePacket() {

}
